const DEV = 'localhost'
const TEST = 'test-obj-storage-pc.peogoo.com'

interface IAPIURL {
  dev: string
  test: string
}

const APIURL: IAPIURL = {
  dev: '/api',
  test: 'https://test-k8s-puhyun-gateway.peogoo.com'
}

let baseURL = ''

const hostName: string = location.hostname
console.log(hostName)
switch (hostName) {
  case TEST:
    baseURL = APIURL['test']
    break
  case DEV:
    baseURL = APIURL['dev']
    break
  default:
    baseURL = ''
}

export default baseURL
